package org.jeik.common;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum CustomerRequestStatus {

	PENDING(1,"جاري التنفيذ"),
	APPROVED(2,"تمت الموافقة"),
	REJECTED(3,"عدم موافقة"),
	FOR_REVISION(4,"للمراجعة"),
	DONE(5, "مكتملة");
	
	private Integer value;
	private String label;
	
	 CustomerRequestStatus(Integer value, String label){
		this.value = value;
		this.label = label;
	}
	
    private static final Map<String, CustomerRequestStatus> lookup =
            new HashMap<String, CustomerRequestStatus>();

        static {
            for (CustomerRequestStatus status : EnumSet.allOf(CustomerRequestStatus.class)) {
                lookup.put(status.name(), status);
            }
        }

        /**
         *
         * @param symbol
         * @return
         */
        public static CustomerRequestStatus get(String symbol) {
            return lookup.get(symbol);
        }

		public static Map<String, CustomerRequestStatus> getLookup() {
			return lookup;
		}

		public Integer getValue() {
			return value;
		}

		public void setValue(Integer value) {
			this.value = value;
		}

		public String getLabel() {
			return label;
		}

		public void setLabel(String label) {
			this.label = label;
		}
		
		
        
        
	
}
